package com.pmcc.platform.user.entity;


import com.pmcc.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

@Getter
@Setter
@Entity
@Table(name = "ds_user_info")
public class UserInfo extends BaseEntity {

    @Column(columnDefinition = "varchar(100) COMMENT '用户oppenid'")
    private  String oppenId; //用户oppenid

    @Column(columnDefinition = "varchar(100) COMMENT '用户名字'")
    private  String name; //用户名字

    @Column(columnDefinition = "varchar(100) COMMENT '经度'")
    private  String  longitude;

    @Column(columnDefinition = "varchar(100) COMMENT '纬度'")
    private  String  latitude;

    @Column(columnDefinition = "varchar(100) COMMENT '省'")
    private String provinces;//省

    @Column(columnDefinition = "varchar(100) COMMENT '城市'")
    private String city;//城市

    @Column(columnDefinition = "varchar(100) COMMENT '区'")
    private String area;//区

    @Column(columnDefinition = "varchar(100) COMMENT '入驻区编码'")
    private String areaCode;//区编码

    @Column(columnDefinition = "varchar(255) COMMENT '头像'")
    private String headimgurl;//区

    @Column(columnDefinition = "varchar(100) COMMENT '用户的性别，值为1时是男性，值为2时是女性，值为0时是未知'")
    private String sex;// 用户的性别，值为1时是男性，值为2时是女性，值为0时是未知



    @Column(columnDefinition = "varchar(100) COMMENT '用户的昵称'")
    private  String nickname;//用户的昵称

    @Column(columnDefinition = "varchar(100) COMMENT '用户所在国家'")
    private  String country;//用户所在国家

    @Transient
    private  int getNum;//用户领取赠品次数
}
